Skip to content

Comparer: highlight current frame with pane-specific color#42

Merged
chammoru merged 2 commits into
masterfrom
feature/comparer-current-frame-highlight
May 27, 2026
Merged

Comparer: highlight current frame with pane-specific color#42
chammoru merged 2 commits into
masterfrom
feature/comparer-current-frame-highlight

Conversation

@chammoru
Copy link
Copy Markdown
Owner

Previously only the frame-number text in the timeline was tinted with the accent color, and both panes used the same color — easy to miss, impossible to tell apart at a glance.

This change fills the entire row of the current frame with a pane-specific color (blue for the left pane, orange for the right) and draws the number in surface white for contrast. Both panes are now immediately distinguishable and the current frame jumps out of the long timeline.

Try it

  • Open a long video pair.
  • Step through frames or click the metric graph.
  • The current frame row in the left timeline panel is filled with the pane's accent color, distinct between left and right.

chammoru added 2 commits May 27, 2026 14:27
Add MetricCal::FrameAtX that maps a graph-area X pixel to a frame ID
under the current view range, and let FrmsInfoView::OnLButtonDown use
it to call SetScenes() and refresh the per-frame metric label. Combined
with the recently-landed wheel zoom, the user can now zoom into a
region of interest and click any point to jump straight to that frame.

Double-click still resets the view, and clicks outside the graph area
fall through to the default handler.
The timeline used to tint only the frame number text in the accent
colour, which was easy to miss and identical for both panes. Now the
whole row for the currently displayed frame is filled — blue for the
left pane, warning-orange for the right pane — with the number drawn
in surface white on top. The two panes are immediately distinguishable
and the current frame jumps out of the timeline.
@chammoru chammoru marked this pull request as ready for review May 27, 2026 09:49
@chammoru chammoru merged commit d3f8321 into master May 27, 2026
1 check passed
@chammoru chammoru deleted the feature/comparer-current-frame-highlight branch May 27, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant